<template>
  <div class="title">
    <div class="l">
      <img :src="imgSrc" alt="" />
      <h2>{{ title1 }}</h2>
    </div>
    <div class="r" v-show="title1 != '积分攻略'">
      <span>更多</span>
      <span class="sp"><img src="../../assets/img/arrow.png" alt="" /></span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["imgSrc", "title1"],
};
</script>
 
<style lang = "less" scoped>
.title {
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  padding-bottom: 20px;
  .l {
    display: flex;
    align-items: center;
    font-size: 30px;
    h2 {
      font-size: 30px;
      font-family: SourceHanSansSC;
      font-weight: bold;
      color: #242b39;
    }
  }
  .r {
    cursor: pointer;
    display: flex;
    align-items: center;

    .sp {
      margin-right: 6px;
    }
  }
}
</style>